package com.cmbc.connect;

/**
 * @author lmw
 */
public class ConnectException extends RuntimeException {
    private static final long serialVersionUID = 3105695396381770890L;

    private boolean fillInStackTrace = true;

    public ConnectException() {
    }

    public ConnectException(String message, boolean fillInStackTrace) {
        super(message);

        this.fillInStackTrace = fillInStackTrace;
    }

    public ConnectException(String message) {
        super(message);
    }

    public ConnectException(String message, Throwable cause) {
        super(message, cause);
    }

    public ConnectException(Throwable cause) {
        super(cause);
    }

    public Throwable fillInStackTrace() {
        if (this.fillInStackTrace) {
            return super.fillInStackTrace();
        }

        return this;
    }
}